const Router = require("koa-router");
const jobController = require("../controllers/jobController");
const router = new Router({
    prefix: '/api/job', // 👈 所有路由自动加 /api 前缀
});

router.get('/list', jobController.getJobClasses);
router.get('/current-and-pre', jobController.getCurrentAndPreJobs);
router.get('/tree', jobController.getJobTreeById);
router.get('/next-leve', jobController.getNextLevelJobs);

module.exports = router;